function columns(vm) {
    const cols = [
        {
            title: '序号',
            dataIndex: '',
            key: 'rowIndex',
            width: 60,
            align: 'center',
            customRender: function (t, r, index) {
                return parseInt(index) + 1
            }
        },
        {
          title: '角色',
          align: 'center',
          dataIndex: 'roleText',
          key: 'roleText'
        },
        {
            title: '类型',
            align: 'center',
            dataIndex: 'typeText',
            key: 'typeText'
        },
        {
            title:'姓名',
            align:'center',
            dataIndex:'name',
            key:'name'
        },
        {
            title:'联系电话',
            align:'center',
            dataIndex:'telephone',
            key:'telephone'
        },
        {
            title:'所属单位',
            align:'center',
            dataIndex:'companyName',
            key:'companyName'
        },
        {
          width: 220,
          dataIndex: 'action',
            align: 'center',
            slots: { title: 'actionName' },
            scopedSlots: { customRender: 'action' }
        }
    ]
    return cols
}

export default columns